home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 028a / slim110a.zip / SLIMDEMO.BAT < prev    next >
DOS Batch File  |  1991-04-04  |  3KB  |  106 lines

  1. echo off
  2. CLS
  3. echo This is a quick demo of the operation of SLIM.
  4. echo SLIM compresses files - all sorts of files -
  5. echo to give you more free space on your disk.
  6. echo And it automatically expands these files when accessed,
  7. echo allowing you to use your files just as before.
  8. echo.
  9. PAUSE
  10. CLS
  11. echo Checking out drive A: before proceeding with demo.
  12. COPY %0.BAT A:EXAMPLE.SLM
  13. A:
  14. IF EXIST SLIM.EXE GOTO PROCEED
  15. echo The file SLIM.EXE should be on drive A: for this demo.
  16. GOTO DEMOEND
  17. :PROCEED
  18. DEL EXAMPLE.SL1
  19. COPY EXAMPLE.SLM EXAMPLE.SL1
  20. IF EXIST EXAMPLE.SL1 GOTO PROCEED1
  21. echo There is not enough free space on A:, or the disk is write protected.
  22. GOTO DEMOEND
  23. :PROCEED1
  24. DEL EXAMPLE.SL1
  25. echo.
  26. echo O.K. Can proceed with demo.
  27. PAUSE
  28. CLS
  29. SLIM ON
  30. IF ERRORLEVEL 1 GOTO DEMOEND
  31. echo.
  32. echo SLIM is now RAM resident. This is needed to compress files
  33. echo and to use them later. To compress a file is simple:
  34. DIR *.SLM
  35. echo.
  36. echo SLIM will compress EXAMPLE.SLM as an example.
  37. PAUSE
  38. SLIM EXAMPLE.SLM
  39. IF ERRORLEVEL 1 GOTO DEMOEND
  40. echo.
  41. PAUSE
  42. CLS
  43. echo To use the compressed file is even simpler.
  44. echo If SLIM is RAM resident and active (SLIM ON),
  45. echo and enough disk space is free to hold the un-compressed file,
  46. echo SLIM automatically expands the file when accessed,
  47. echo allowing it to be used just as before. You could TYPE the
  48. echo file, for instance.
  49. PAUSE
  50. TYPE EXAMPLE.SLM
  51.  
  52.  
  53.  
  54. PAUSE
  55. CLS
  56. echo For backup, copying, etc., SLIM may be turned OFF. This allows
  57. echo a compressed file to be accessed without automatic expansion.
  58. echo Type SLIM OFF to do this and you can then copy or display compressed
  59. echo files, or manipulate them in any other way. For example:
  60. echo.
  61. echo SLIM OFF
  62. SLIM OFF
  63. echo.
  64. echo.
  65. echo COPY EXAMPLE.SLM EXAMPLE.SL1
  66. COPY EXAMPLE.SLM EXAMPLE.SL1
  67. echo.
  68. echo DIR EXAMPLE.SL?
  69. DIR EXAMPLE.SL?
  70. PAUSE
  71. CLS
  72. echo Do not try to use a compressed file when SLIM is OFF,
  73. echo or before SLIM is loaded by the first SLIM ON command.
  74. echo The file will not then make sense - but look something 
  75. echo like this...
  76. echo.
  77. TYPE EXAMPLE.SLM
  78. echo.
  79. echo.
  80. PAUSE
  81. CLS
  82. echo To see which files are compressed by SLIM and by how much,
  83. echo use the SLIM R command, eg SLIM R EXAMPLE.*
  84. SLIM R EXAMPLE.*
  85. echo.
  86. PAUSE
  87. CLS
  88. echo Compressed files may be de-compressed by the SLIM X command.
  89. echo eg SLIM X EXAMPLE.SLM
  90. echo.
  91. SLIM X EXAMPLE.SLM
  92. echo.
  93. echo.
  94. DIR EXAMPLE.SLM
  95. PAUSE
  96. DEL EXAMPLE.SLM
  97. DEL EXAMPLE.SL1
  98. CLS
  99. echo For a quick reference to SLIM commands, just type SLIM.
  100. PAUSE
  101. echo.
  102. SLIM
  103. echo.
  104. :DEMOEND
  105. echo This concludes the demonstration.
  106.